{{csrf_field()}}
<div class="layui-row">
    <div class="layui-col-md12">
        <div class="layui-form-item">
            <label class="layui-form-label">* 标题</label>
            <div class="layui-input-block">
                <input type="text" name="title" value="{{$config->title??''}}" autocomplete="off" placeholder="" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">* 表单类型</label>
            <div class="layui-input-block">
                <select name="type">
                    <option value="">请选择类型</option>
                    @foreach(form_type_list() as $key =>$val)
                    <option value="{{$key}}" @if(isset($config->type) && ($key == $config->type)) selected="selected" @endif>{{$val}}</option>
                    @endforeach

                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">名称</label>
            <div class="layui-input-block">
                <input type="text" name="name" value="{{$config->name??''}}" autocomplete="off" placeholder="" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">分组名称</label>
            <div class="layui-input-block">
                <input type="text" name="group_name" value="{{$config->group_name??''}}"  autocomplete="off" placeholder="" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">备注</label>
            <div class="layui-input-block">

                <textarea name="remark" placeholder="请输入内容" class="layui-textarea">{{$config->remark??''}}</textarea>

            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">启用：</label>
            <div class="layui-input-block">
                <input type="checkbox" @if(isset($config->status) && ($config->status == 1)) checked="" @endif name="status" lay-skin="switch" lay-filter="switch"  lay-text="开启|禁止">
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" lay-filter="config" lay-submit>保 存</button>
                <button class="layui-btn layui-btn-primary" type="reset">重 置</button>
            </div>
        </div>
    </div>

</div>
